package com.itheima.app.manager.umsManager;


import com.itheima.commons.R;
import com.itheima.domain.db.ums.UmsMemberLevel;
import com.itheima.service.umsService.UmsMemberLevelService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
public class UmsMemberLevelManager {


    @DubboReference
    UmsMemberLevelService umsMemberLevelService;


    public R findAllMemberLevel(Integer defaultStatus) {
        List<UmsMemberLevel> memberLevel = umsMemberLevelService.findMemberLevel(defaultStatus);

        return R.ok(memberLevel);
    }
}